Therefore need to test for -EAGAIN (not EAGAIN).
Signed-off-by: Keir Fraser <keir@xensource.com>
}
err = xenbus_transaction_end(0);
- if (err == EAGAIN)
+ if (err == -EAGAIN)
goto again;
if (err) {
xenbus_dev_error(be->dev, err, "ending transaction",
err = xenbus_transaction_end(0);
if (err) {
- if (err == EAGAIN)
+ if (err == -EAGAIN)
goto again;
xenbus_dev_error(dev, err, "completing transaction");
goto destroy_blkring;
err = xenbus_transaction_end(0);
if (err) {
- if (err == EAGAIN)
+ if (err == -EAGAIN)
goto again;
xenbus_dev_error(dev, err, "completing transaction");
goto destroy_ring;
}
err = xenbus_transaction_end(0);
- if (err == EAGAIN)
+ if (err == -EAGAIN)
goto again;
if (err) {
xenbus_dev_error(be->dev, err, "end of transaction");
}
err = xenbus_transaction_end(0);
- if (err == EAGAIN)
+ if (err == -EAGAIN)
goto again;
if (err) {
xenbus_dev_error(dev, err, "completing transaction");